package com.fx.spring.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface ControllerFX {

    /**
     * Component 注解的value
     */
    @AliasFor(annotation = Component.class)
    String value() default "";


    /**
     * FXML 路径，在enableLoader时 生效
     */
    String fxmlURL();

    /**
     * 是否为每一个实例都是新的 默认false
     */
    //boolean prototype() default false;

}
